// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** checkLike GET /api/api/comment-like/check/${param0} */
export async function checkLikeUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.checkLikeUsingGETParams,
  options?: { [key: string]: any }
) {
  const { commentId: param0, ...queryParams } = params
  return request<API.BaseResponseBoolean_>(`/api/api/comment-like/check/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** toggleLike POST /api/api/comment-like/toggle/${param0} */
export async function toggleLikeUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.toggleLikeUsingPOSTParams,
  options?: { [key: string]: any }
) {
  const { commentId: param0, ...queryParams } = params
  return request<API.BaseResponseString_>(`/api/api/comment-like/toggle/${param0}`, {
    method: 'POST',
    params: { ...queryParams },
    ...(options || {}),
  })
}
